﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="query.aspx.cs" Inherits="btnet.pages.query" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title id="titl" runat="server">btnet query</title>
<link rel="StyleSheet" href="~/scripts/css/btnet.css" type="text/css" />
<script type="text/javascript" language="JavaScript" src="../scripts/javascripts/sortable.js"></script>
</head>
<body>

<div class="align">
<table border="0">

<tr><td style="border: red solid 2px;
	background: yellow; color: #ff0000;
	font-weight: bold;
	font-size: 8pt;
	padding: 4px;">

This page is not safe on a public web server.
After you install BugTracker.NET on a public web server, please delete it.
</td>
</tr>
<tr><td align=right>
<script>
var shown = true;

function showhide_form()
{
	var frm =  document.getElementById("<% Response.Write(Util.get_form_name()); %>");
	if (shown)
	{
		frm.style.display = "none";
		shown = false;
		showhide.firstChild.nodeValue = "show form";
	}
	else
	{
		frm.style.display = "block";
		shown = true;
		showhide.firstChild.nodeValue = "hide form";
	}
}
</script>
<a href='javascript:showhide_form()' id='showhide'>hide form</a>
</td></tr>
<tr><td>

<form id="Form1" class="frm" action="query.aspx" method="POST" runat="server">
	<span class="smallnote">Enter SQL:</span>
	<br>
	<textarea rows="15" cols="70" runat="server" id="queryarea"></textarea>
	<p>
	<input id="Submit1" runat="server" type="submit" value="Execute SQL">
</form>

</td></tr></table></div>

<%

    displaylist();
    
%>
</body>
</html>
